<h2>Nová fotka</h2>

<%= form_for [:admin, @product_photo], :url => admin_product_product_photos_path(params[:id]) do |f| %>

    <%= render "shared/error_messages", :target => @product_photo %>

    <table>
      <tbody>
        <tr>
          <th><%= f.label :attachment_file_name %></th>
          <td><%= f.file_field :attachment %></td>
          <td>Podporovaný formát: <strong>.JPG, .PNG, .GIF</strong></td>
        </tr>
        <tr>
          <th><%= f.label :description %></th>
          <td colspan="2"><%= f.text_field :description, :maxlength => 250, :size => 80 %></td>
        </tr>
        <tr>
          <td colspan="3"><%= f.submit %></td>
        </tr>
      </tbody>
    </table>
<% end %>